import { _decorator, Component, director, input, Input, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('to_scene_2')
export class to_scene_2 extends Component {
    start() {
        //鼠标事件
        input.on(Input.EventType.MOUSE_DOWN, this.onMouseDown, this);
    }
    onMouseDown() {
        director.loadScene("scene_2");
    }

    update(deltaTime: number) {

    }
}

